<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>

</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return'<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>订单管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>订单列表</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });
    var has_add = '';
    var has_edit = '';
    var has_delete = '';
</script>
<body class="gray-bg">
<div class="wrapper wrapper-content " style="overflow-x: scroll">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                    <%--<div class="columns pull-left">--%>
                    <%--<button type="button" class="btn  btn-primary" onclick="order.addOrder()">--%>
                    <%--增加桩群--%>
                    <%--</button>--%>
                    <%--</div>--%>
<%--                        <form id="frmWebPageInfo">--%>
                        <input type="hidden" id="tenantOpenId" value="${tenantOpenId}">
                        <input type="hidden" id="tenantCode" value="${tenantCode}">
                        <input type="hidden" id="hlhtTenantCode" value="${hlhtTenantCode}">
                        <input type="hidden" id="hlhtOperatorId" value="${hlhtOperatorId}">
                        <input type="hidden" id="hlhtOpenType" value="${hlhtOpenType}">
                        <input type="hidden" id="hlhtType" value="${hlhtType}">


                    <div class="pull-left search col-md-2">
                        <input id="nickname" name="nickname" type="text" class="form-control"
                               placeholder="会员名称">
                        <input id="startTime" name="startTime" type="text" class="form-control"
                               placeholder="开始时间">
                        <input id="stationName" name="stationName" type="text" class="form-control"
                               placeholder="桩群名">
                    </div>
                    <div class="pull-left search col-md-2">
                        <input id="mobile" name="mobile" type="text" class="form-control"
                               placeholder="手机号" >
                        <input id="endTime" name="endTime" type="text" class="form-control"
                               placeholder="结束时间">
                        <input id="GunNo" name="GunNo" type="text" class="form-control"
                               placeholder="枪号">
                    </div>
                    <div class="pull-left search col-md-2">
                        <input id="orderNum" name="orderNum" type="text" class="form-control"
                               placeholder="订单号或外部订单号">
                        <input id="totalMoney" name="totalMoney" type="text" class="form-control"
                               placeholder="充电金额">
                    </div>
<%--                        </form>--%>
                    <div class="pull-left search col-md-2">
                        <button class="btn btn-success" onclick="hlhtOrderInfo.reLoad()">查询</button>
                    </div>
                    <div class="pull-left search col-md-1">
                        <input id="count" name="count" type="text" class="form-control"
                               placeholder="导出条数">
                        <%--<span class="text-primary">最大导出条数:20000</span>--%>
                    </div>
                    <div class="pull-left search col-md-2">
                        <button class="btn btn-success exportBtn" onclick="hlhtOrderInfo.exportHlhtOrderInfo()">导出</button>
                    </div>
                </div>
                <table id="exampleTable" style="word-break:break-all;" data-mobile-responsive="true">
                </table>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="${ctx}/appjs/hlht/hlhtOrderInfo.js"></script>
<script type="text/javascript">

    var thisDate = new Date();
    var year = thisDate.getFullYear();
    var month = thisDate.getMonth() + 1;
    var date = thisDate.getDate();
    if (month < 10) {
        month = '0' + month
    }
    if (date < 10) {
        date = '0' + date
    }
    $('#startTime').val(year + '-' + month + '-' + date + ' ' + '00:00:00');

    $('#endTime').val(year + '-' + month + '-' + date + ' ' + '23:59:59');

    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var startTime = laydate.render({
            elem: '#startTime',
            type: 'datetime',
            format: 'yyyy-MM-dd HH:mm:ss',
            trigger: 'click',
            done: function (value, dates) {
                endTime.config.min = {
                    year: dates.year,
                    month: dates.month - 1, //关键
                    date: dates.date,
                    hours: 0,
                    minutes: 0,
                    seconds: 0
                };
            }
        });
        var endTime = laydate.render({
            elem: '#endTime',
            type: 'datetime',
            format: 'yyyy-MM-dd HH:mm:ss',
            trigger: 'click'
        });

    });

    hlhtOrderInfo.init();
</script>
</body>
</html>
